<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Full list panier</title>
    </head>
    <body>
        <h1>Full list panier</h1>

        <table border="1" cellpadding="4px">
            <thead>
                <tr>
                    <th>Date</th>
                    <th>Nom & prénom</th>
                    <th>Lite des items</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <c:forEach items="${requestScope.panierList}" var="panier"> 
                    <tr>
                        <td>${panier.dateCreationPanier}</td>
                        <td>${panier.utilisateur.nom} ${panier.utilisateur.prenom} </td>
                        <td>
                            <c:forEach items="${panier.lignedepanierList}" var="ligne">
                                - ${ligne.exemplaire.item.titre}<br/>
                            </c:forEach>
                        </td>
                        <td> <a href="emprunter?idpanier=${panier.panierId}">Valider</a> </td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>


    </body>
</html>
